<?php

include_once($_SERVER['DOCUMENT_ROOT'] . '/lolcomp/inc/init.php');
/*
echo(error_get_last());
echo("1");
__autoload("fDatabase");
echo("2");
__autoload("fActiveRecord");
echo("3");
include_once($_SERVER['DOCUMENT_ROOT'] . '/lolcomp/model/Summoner.php');
echo("4");
$db = new fDatabase('mysql', 'medunet_killerhound',  'medunet_killer', 'blNgkRXZ2YE9');
echo("5");
fORMDatabase::attach($db);
echo("5");
fORM::mapClassToTable('Summoner', 'medunet_killerhound.LOLCOMP_Summoner');
echo("6");
$summoner = new Summoner();
echo("7");
echo("id".$summoner->getId());
echo("8");
*/

$bean = R::dispense('lolcomp_summoner');
$bean->name = 'Test';

//Store the bean
$id = R::store($bean);

//Reload the bean
$leaflet = R::load('lolcomp_summoner',$id);

//Display the title
echo $leaflet->name;
 


?>